﻿using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace Miao.ArchotechFix
{
    public class CompProperties_ArchoBattleDroidHediffComp : CompProperties
    {
        public CompProperties_ArchoBattleDroidHediffComp()
        {
            this.compClass = typeof(ArchoBattleDroidHediffComp);
        }
    }




    public class ArchoBattleDroidHediffComp : ThingComp
    {
        public override void PostSpawnSetup(bool respawningAfterLoad)
        {
            base.PostSpawnSetup(respawningAfterLoad);
            Pawn pawn = (parent as Pawn);
            //Hediff hediff =  pawn.health.AddHediff(RimWorld.HediffDefOf.PsychicAmplifier, pawn.health.hediffSet.GetBrain());
            //Hediff_Psylink hediff_Psylink = (hediff as Hediff_Psylink);
            //hediff_Psylink.level = 6;

            pawn.health.AddHediff(HediffDefOf.ArchoBattleDroidHediff);

        }
    }
}
